import request from '@/utils/request'


// 查询列表
export function listRoute(params) {
  return request({
    url: '/console/route/list',
    method: 'get',
    params: params
  })
}

//新增
export function addRoute(data) {
  return request({
    url: '/console/route/add',
    method: 'post',
    data: data
  })
}

//修改
export function editRoute(data) {
  return request({
    url: '/console/route/update',
    method: 'post',
    data: data
  })
}

//查询单条数据
export function getRoute(params) {
  return request({
    url: '/console/route/getById',
    method: 'get',
    params: params
  })
}

//删除数据
export function deleteRoute(data) {
  return request({
    url: '/console/route/delete',
    method: 'post',
    data: data
  })
}

//查询所有景点
export function getAllAreaList(params){
  return request({
    url: '/console/scenic/area/listAll',
    method: 'get',
    params: params
  })
}

//查询所有景点
export function getAllAreaSpotList(params){
  return request({
    url: '/console/scenic/area/listAll',
    method: 'get',
    params: params
  })
}